<?php

class test extends CI_Controller {

    function test() {
        parent::__construct();
        $this->load->helper('dompdf');
        $this->load->helper('file');
    }

    function index() {
        $data['title']= "Just a test";
        $html = $this->load->view('report/peminjaman', $data, true);
        pdf_create($html, 'file_out');
    }

    function nota() {
        
        $data['title']= "Just a test";
        $html = $this->load->view('report/nota_pengambilan_barang', $data, true);
        pdf_create($html, 'file_out');
    }
    function transaksi() {

        $data['title']= "Just a test";
        $html = $this->load->view('report/transaksi', $data, true);
        pdf_create($html, 'file_out');
    }
    function konsultasi() {

        $data['title']= "Just a test";
        $html = $this->load->view('report/konsultasi_pinjaman', $data, true);
        pdf_create($html, 'file_out');
    }
}